﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopRoom")]
    public class TopRoom : BaseObject
    {
        //begin
        public TopRoom()
        {}
        public TopRoom(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Gid;
        public string Gid
        {
            get
            {
                return _Gid;
            }
            set
            {
                SetPropertyValue("Gid", ref _Gid, value);
            }
        }
        private string _Rid;
        public string Rid
        {
            get
            {
                return _Rid;
            }
            set
            {
                SetPropertyValue("Rid", ref _Rid, value);
            }
        }
        private string _Hid;
        public string Hid
        {
            get
            {
                return _Hid;
            }
            set
            {
                SetPropertyValue("Hid", ref _Hid, value);
            }
        }
        private string _Iid;
        public string Iid
        {
            get
            {
                return _Iid;
            }
            set
            {
                SetPropertyValue("Iid", ref _Iid, value);
            }
        }
        private string _Title;
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _Size;
        public string Size
        {
            get
            {
                return _Size;
            }
            set
            {
                SetPropertyValue("Size", ref _Size, value);
            }
        }
        private string _Area;
        public string Area
        {
            get
            {
                return _Area;
            }
            set
            {
                SetPropertyValue("Area", ref _Area, value);
            }
        }
        private string _BedType;
        public string BedType
        {
            get
            {
                return _BedType;
            }
            set
            {
                SetPropertyValue("BedType", ref _BedType, value);
            }
        }
        private string _Storey;
        public string Storey
        {
            get
            {
                return _Storey;
            }
            set
            {
                SetPropertyValue("Storey", ref _Storey, value);
            }
        }
        private string _Breakfast;
        public string Breakfast
        {
            get
            {
                return _Breakfast;
            }
            set
            {
                SetPropertyValue("Breakfast", ref _Breakfast, value);
            }
        }
        private string _Bbn;
        public string Bbn
        {
            get
            {
                return _Bbn;
            }
            set
            {
                SetPropertyValue("Bbn", ref _Bbn, value);
            }
        }
        private string _Service;
        public string Service
        {
            get
            {
                return _Service;
            }
            set
            {
                SetPropertyValue("Service", ref _Service, value);
            }
        }
        private string _PicUrl;
        public string PicUrl
        {
            get
            {
                return _PicUrl;
            }
            set
            {
                SetPropertyValue("PicUrl", ref _PicUrl, value);
            }
        }
        private string _PaymentType;
        public string PaymentType
        {
            get
            {
                return _PaymentType;
            }
            set
            {
                SetPropertyValue("PaymentType", ref _PaymentType, value);
            }
        }
        private long _Deposit;
        public long Deposit
        {
            get
            {
                return _Deposit;
            }
            set
            {
                SetPropertyValue("Deposit", ref _Deposit, value);
            }
        }
        private long _Fee;
        public long Fee
        {
            get
            {
                return _Fee;
            }
            set
            {
                SetPropertyValue("Fee", ref _Fee, value);
            }
        }
        private string _Guide;
        public string Guide
        {
            get
            {
                return _Guide;
            }
            set
            {
                SetPropertyValue("Guide", ref _Guide, value);
            }
        }
        private string _Desc;
        [Size(SizeAttribute.Unlimited)]
        public string Desc
        {
            get
            {
                return _Desc;
            }
            set
            {
                SetPropertyValue("Desc", ref _Desc, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private DateTime _Modified;
        public DateTime Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private long _Status;
        public long Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private TopHotel _Hotel;
        public TopHotel Hotel
        {
            get
            {
                return _Hotel;
            }
            set
            {
                SetPropertyValue("Hotel", ref _Hotel, value);
            }
        }
        private TopRoomType _RoomType;
        public TopRoomType RoomType
        {
            get
            {
                return _RoomType;
            }
            set
            {
                SetPropertyValue("RoomType", ref _RoomType, value);
            }
        }
        private string _RoomQuotas;
        public string RoomQuotas
        {
            get
            {
                return _RoomQuotas;
            }
            set
            {
                SetPropertyValue("RoomQuotas", ref _RoomQuotas, value);
            }
        }
        //end
    }
}
